package org.scboy.coobi.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "coobi")
public class CoobiProperties {
	
	/**
	 * 是否开启数据变更日志
	 */
	private boolean openDataAlterLog=false;
	
	public boolean isOpenDataAlterLog() {
		return openDataAlterLog;
	}

	public void setOpenDataAlterLog(boolean openDataAlterLog) {
		this.openDataAlterLog = openDataAlterLog;
	}

	/**
	 * 忽略记录变更日志的表
	 */
	private String [] ignoreTable=new String[] {};
	
	public String[] getIgnoreTable() {
		return ignoreTable;
	}

	public void setIgnoreTable(String[] ignoreTable) {
		this.ignoreTable = ignoreTable;
	}

	/**
	 * SQL和参数打印
	 */
	private boolean showSql=false;

	public boolean isShowSql() {
		return showSql;
	}

	public void setShowSql(boolean showSql) {
		this.showSql = showSql;
	}
	
	/**
	 * SQL解析模板文件类
	 */
	private String tmpClass= "org.scboy.coobi.template.BeetlTemplate";

	public String getTmpClass() {
		return tmpClass;
	}

	public void setTmpClass(String tmpClass) {
		this.tmpClass = tmpClass;
	}
	
	@Value("${spring.application.name}")
	private String serverName="";

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}
	
	/**
	 * 心跳时间
	 */
	private long timer=5000;

	public long getTimer() {
		return timer;
	}

	public void setTimer(long timer) {
		this.timer = timer;
	}
	
	
}
